class UrlMappings {

    static mappings = {
        "/$controller/$action?/$id?(.$format)?"{
            constraints {
                // apply constraints here
            }
        }
        
        //spring security mappings for the loging/logout page
        "/login/$action?"(controller: "login")
        "/logout/$action?"(controller: "logout")

        //change the home page
        "/" {
            controller = "employee"
            action = "index"
        }
        "500"(view:'/error')
        "/processPlannerEvents"(controller: "Employee", action: "processPlannerEvents")
    }
}
